package com.tgy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 部门信息表(Dept)实体类
 *
 * @author
 * @since 2022-01-10 17:51:37
 */


@ToString
@Data
@Accessors(chain = true)//支持链式写法
public class Dept implements Serializable {
    private static final long serialVersionUID = 648915355650916107L;

    private Long deptNo;

    private String deptName;

    //一个服务对应一个数据库，同一个信息可能存在不同饿数据库
    private String dbSource;

    public Dept(Long deptNo, String deptName) {
        this.deptNo = deptNo;
        this.deptName = deptName;
    }

    public Dept() {
    }
}

